#include <iostream>
#include <string>

using namespace std;

class data;

class Time
{

private:
    int hour;
    int min;
    int sec;

public:
    Time()
        :hour(0) ,min(0),sec(0)
        {

        }
    Time(int hour ,int min , int sec)
        :hour(hour),min(min),sec(sec)
        {

        }   
    ~Time()
    {

    }

public:
    void show_Time()
    {
        cout << this->hour << ":" << this->min << ":" << this->sec << endl;
    }

    friend void show_data_time (data & D , Time & T);
};

class data
{
private:
   int year;
   int month;
   int day;
public:
    data()
        : year(0) , month(0) , day(0)
        {

        }
    data(int year , int month ,int day)
        : year(year) , month(month) , day(day)
        {

        }

public:
    void show_Data()
    {
        cout << this->year << "/" << this->month << "/"<<this->day << endl;

    }
    friend void show_data_time( data & D ,Time & T);
};

void show_data_time(data & D ,Time & T)
{
    cout << T.hour << ":" << T.min << ":" << T.sec  << endl;
    cout << D.year << "/" << D.month << "/" << D.day << endl;
}


int main(int argc, char const *argv[])
{
    
    Time T (16,14,30);
    data D (2025,1,17);

    T.show_Time();
    D.show_Data();
    
    show_data_time(D,T);
    
    return 0;
}
